UpdateSubresource<T>(T[],Resource,Int32,Int32,Int32,Nullable<ResourceRegion>) Method
In This Topic
Copies data from the CPU to to a non-mappable subresource region.
Syntax
'Declaration
Public Overloads Sub UpdateSubresource(Of As {New, Struct})( _
ByVal () As , _
ByVal As Resource, _
Optional ByVal As Integer, _
Optional ByVal As Integer, _
Optional ByVal As Integer, _
Optional ByVal As Nullable(Of ResourceRegion) _
)
public void UpdateSubresource<>(
[] ,
Resource ,
int ,
int ,
int ,
Nullable<ResourceRegion>
)
where T: new(), struct
Parameters
- data
- A reference to the data to upload.
- resource
- The destination resource.
- subresource
- The destination subresource.
- rowPitch
- The row pitch.
- depthPitch
- The depth pitch.
- region
- A region that defines the portion of the destination subresource to copy the resource data into. Coordinates are in bytes for buffers and in texels for textures.
Type Parameters
- T
- Type of the data to upload
See Also